home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
2_7.lha
/
2_7
/
2_7a.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
360b
|
17 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ union to pick apart the double
nion double_byte
double d;
struct // first 2 bytes only
{
unsigned sign : 1;
unsigned exponent : 11;
unsigned mantissa : 4;
} s_m;
char c[sizeof(double)]; // all 8 bytes
;